<template>
  <div >
    <div style="box-sizing: border-box;padding-top: 20px">
      <span>
        上传人
        <el-select v-model="value2" class="m-2" placeholder="Select" size="large" style="width: 120px">

        <el-option
            v-for="item in options2"
            :key="item.value"
            :label="item.label"
            :value="item.value"
        />
        </el-select>
        文档类型
        <el-select v-model="value2" class="m-2" placeholder="Select" size="large">
        <el-option
            v-for="item in options2"
            :key="item.value"
            :label="item.label"
            :value="item.value"
        />
        </el-select>
        主题关键字
        <el-select v-model="value3" class="m-2" placeholder="Select" size="large">
        <el-option
            v-for="item in options3"
            :key="item.value"
            :label="item.label"
            :value="item.value"
        />
        </el-select>
      </span>
    </div>
  </div>

  <div style="padding-top: 20px">
    上传科室
    <el-select v-model="value2" class="m-2" placeholder="Select" size="large" style="width: 120px">

      <el-option
          v-for="item in options2"
          :key="item.value"
          :label="item.label"
          :value="item.value"
      />
    </el-select>
    <span >上传时间</span>
    <el-date-picker
        v-model="form.date1"
        type="daterange"
        range-separator="To"
        start-placeholder="Start date"
        end-placeholder="End date"/>
    <el-button style="float: right;">重置</el-button>
    <el-button style="right:100px;float: right;">搜索</el-button>
  </div>


  <span style="padding-left: 260px">文档信息</span >
  <span style="float: right;padding-right: 40px">还有8份文档待审核</span>
  <div style="padding-top: 10px">
    <el-table
        title="文档信息"
        ref="multipleTableRef"
        :data="tableData"
        style="width: 100%"
        @selection-change="handleSelectionChange"
    >
      <el-table-column property="person" label="上传人" width="100" />
      <el-table-column property="department" label="上传科室" show-overflow-tooltip width="100"/>
      <el-table-column property="title" label="文档标题" width="150" />
      <el-table-column property="keyword" label="主题关键字" show-overflow-tooltip width="100"/>
      <el-table-column property="type" label="文件类型" width="100" />
      <el-table-column label="上传时间" width="230">
        <template #default="scope">{{ scope.row.date }}</template>
      </el-table-column>
      <el-table-column property="name" label="操作" width="200" >

        <el-button
            type="primary"
            text
            link
        >查看</el-button>
        <el-button
            type="primary"
            text
            link
        >附件列表</el-button>
        <el-button
            type="primary"
            text
            link
        >发布</el-button>
        <el-button
            type="primary"
            text
            link
        >退回</el-button>

      </el-table-column>


    </el-table>


  </div>

</template>


<script>
import { ref } from 'vue'
import { ElTable } from 'element-plus'

export default {
  name: "ViewFile",
  data(){
    return{
      form:{
        name: '',
        region: '',
        date1: '',
        date2: '',
        delivery: false,
        type: [],
        resource: '',
        desc: '',
      },

      tableData:
          [
            {
              person:'王磊',
              department:'销售部',
              title:'每日任务',
              keyword:'每日任务',
              type:'word',
              date: '2016/05/03--13:06:19',

            },
            {
              person:'李丽',
              department:'销售部',
              title:'每日任务2',
              keyword:'每日任务',
              type:'word',
              date: '2017/06/20--18:59:59',

            },
            {
              person:'郝强',
              department:'财务部',
              title:'文档管理界面原型图',
              keyword:'文档管理',
              type:'jpg',
              date: '2018/03/20--07:08:00',
            },
            {
              person:'孙勇',
              department:'人力部',
              title:'文档管理界面原面原型',
              keyword:'文档管理界面',
              type:'html',
              date: '2018/01/01--09:07:00',
            },
            {
              person:'李明',
              department:'行政部',
              title:'文档管理模块需求分析',
              keyword:'文档管理',
              type:'word',
              date: '2020/12/05--15:35:20',
            },
            {
              person:'张强',
              department:'销售部',
              title:'oa功能结构图',
              keyword:'oa',
              type:'excel',
              date: '2021/03/12--16:35:22',
            },
            {
              person:'李旭',
              department:'公关部',
              title:'文档管理界面原型图',
              keyword:'文档管理',
              type:'jpg',
              date: '2022/06/20--21:13:00',
            },
          ]
    }
  }

}
</script>


<style scoped>
.el-descriptions-item{
  height: 300px;
  weight:20px;
}
</style>